import request from '@/utils/request';

//获取
export function getLifeData(params) {
  return request(`/lifeCycle/getLifeData`,{
    method:'POST',
    body:JSON.stringify(params)
  });
}

//增加
export function addLifeData(params) {
    return request(`/lifeCycle/addLifeData`,{
        method:'POST',
        body:JSON.stringify(params)
    });
}

//编辑
export function operate(params) {
    return request(`/lifeCycle/operate`,{
        method:'POST',
        body:JSON.stringify(params)
    });
}